﻿/*
 * 由SharpDevelop创建。
 * 用户： xieen
 * 日期: 2013-08-21
 * 时间: 13:21
 * 
 * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
 */
using System;

namespace GoF23Learning._14.Command_Pattern.Refactor
{
	/// <summary>
	/// Description of Document.
	/// </summary>
	public class DocumentCommand :ICommand
	{
		Document document;
		
		public DocumentCommand(Document doc){
			
			this.document = doc;
		}
 
		public void Excute()
		{
			Console.WriteLine("Document Excute");
		}
		
		public void Redo()
		{
			Console.WriteLine("Document Redo");
		}
		
		public void Undo()
		{
			Console.WriteLine("Document Undo");
		}
	}
}
